package com.lagou.servlets;

import com.lagou.config.Config;
import com.lagou.pojo.Resume;
import com.lagou.service.ResumeService;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;


import javax.servlet.annotation.WebServlet;

@WebServlet(name = "resumeServlet")
public class ResumeServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        ResumeService service = new ResumeService();
        Resume resume = service.selectOne();
        resp.getWriter().write(resume==null?"":resume.toString());
    }
}
